package com.sudichina.sudichina.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by mccccccmike on 2016/9/2.
 */
public class Vehicle implements Parcelable {
    private int id;
    private String status;
    private String gmtCreate;
    private String gmtModified;
    private String accountId;
    private String carFirstLetter;
    private String cardNumber;
    private String driverName;
    private String driverTel;
    private String driverLicense;
    private String driverLicensePath;
    private String engineNum;
    private String carDicId;
    private String driveLicense;
    private String driveLicensePath;
    private String driveLicensePath2;
    private String driveLicensePath3;
    private String zoneId;
    private String zoneStreet;
    private int auditStatus;
    private String auditReason;
    private String postTimes;
    private String isDel;
    private String isOnline;
    private String recordSource;
    private String carLenght;
    private String carCube;
    private String carWeight;

    public Vehicle(int id, String status, String gmtCreate, String gmtModified, String accountId, String carFirstLetter, String cardNumber, String driverName, String driverTel, String driverLicense, String driverLicensePath, String engineNum, String carDicId, String driveLicense, String driveLicensePath, String driveLicensePath2, String driveLicensePath3, String zoneId, String zoneStreet, int auditStatus, String auditReason, String postTimes, String isDel, String isOnline, String recordSource, String carLenght, String carCube, String carWeight) {
        this.id = id;
        this.status = status;
        this.gmtCreate = gmtCreate;
        this.gmtModified = gmtModified;
        this.accountId = accountId;
        this.carFirstLetter = carFirstLetter;
        this.cardNumber = cardNumber;
        this.driverName = driverName;
        this.driverTel = driverTel;
        this.driverLicense = driverLicense;
        this.driverLicensePath = driverLicensePath;
        this.engineNum = engineNum;
        this.carDicId = carDicId;
        this.driveLicense = driveLicense;
        this.driveLicensePath = driveLicensePath;
        this.driveLicensePath2 = driveLicensePath2;
        this.driveLicensePath3 = driveLicensePath3;
        this.zoneId = zoneId;
        this.zoneStreet = zoneStreet;
        this.auditStatus = auditStatus;
        this.auditReason = auditReason;
        this.postTimes = postTimes;
        this.isDel = isDel;
        this.isOnline = isOnline;
        this.recordSource = recordSource;
        this.carLenght = carLenght;
        this.carCube = carCube;
        this.carWeight = carWeight;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(String gmtCreate) {
        this.gmtCreate = gmtCreate;
    }

    public String getGmtModified() {
        return gmtModified;
    }

    public void setGmtModified(String gmtModified) {
        this.gmtModified = gmtModified;
    }

    public String getAccountId() {
        return accountId;
    }

    public void setAccountId(String accountId) {
        this.accountId = accountId;
    }

    public String getCarFirstLetter() {
        return carFirstLetter;
    }

    public void setCarFirstLetter(String carFirstLetter) {
        this.carFirstLetter = carFirstLetter;
    }

    public String getCardNumber() {
        return cardNumber;
    }

    public void setCardNumber(String cardNumber) {
        this.cardNumber = cardNumber;
    }

    public String getDriverName() {
        return driverName;
    }

    public void setDriverName(String driverName) {
        this.driverName = driverName;
    }

    public String getDriverTel() {
        return driverTel;
    }

    public void setDriverTel(String driverTel) {
        this.driverTel = driverTel;
    }

    public String getDriverLicense() {
        return driverLicense;
    }

    public void setDriverLicense(String driverLicense) {
        this.driverLicense = driverLicense;
    }

    public String getDriverLicensePath() {
        return driverLicensePath;
    }

    public void setDriverLicensePath(String driverLicensePath) {
        this.driverLicensePath = driverLicensePath;
    }

    public String getEngineNum() {
        return engineNum;
    }

    public void setEngineNum(String engineNum) {
        this.engineNum = engineNum;
    }

    public String getCarDicId() {
        return carDicId;
    }

    public void setCarDicId(String carDicId) {
        this.carDicId = carDicId;
    }

    public String getDriveLicense() {
        return driveLicense;
    }

    public void setDriveLicense(String driveLicense) {
        this.driveLicense = driveLicense;
    }

    public String getDriveLicensePath() {
        return driveLicensePath;
    }

    public void setDriveLicensePath(String driveLicensePath) {
        this.driveLicensePath = driveLicensePath;
    }

    public String getDriveLicensePath2() {
        return driveLicensePath2;
    }

    public void setDriveLicensePath2(String driveLicensePath2) {
        this.driveLicensePath2 = driveLicensePath2;
    }

    public String getDriveLicensePath3() {
        return driveLicensePath3;
    }

    public void setDriveLicensePath3(String driveLicensePath3) {
        this.driveLicensePath3 = driveLicensePath3;
    }

    public String getZoneId() {
        return zoneId;
    }

    public void setZoneId(String zoneId) {
        this.zoneId = zoneId;
    }

    public String getZoneStreet() {
        return zoneStreet;
    }

    public void setZoneStreet(String zoneStreet) {
        this.zoneStreet = zoneStreet;
    }

    public int getAuditStatus() {
        return auditStatus;
    }

    public void setAuditStatus(int auditStatus) {
        this.auditStatus = auditStatus;
    }

    public String getAuditReason() {
        return auditReason;
    }

    public void setAuditReason(String auditReason) {
        this.auditReason = auditReason;
    }

    public String getPostTimes() {
        return postTimes;
    }

    public void setPostTimes(String postTimes) {
        this.postTimes = postTimes;
    }

    public String getIsDel() {
        return isDel;
    }

    public void setIsDel(String isDel) {
        this.isDel = isDel;
    }

    public String getIsOnline() {
        return isOnline;
    }

    public void setIsOnline(String isOnline) {
        this.isOnline = isOnline;
    }

    public String getRecordSource() {
        return recordSource;
    }

    public void setRecordSource(String recordSource) {
        this.recordSource = recordSource;
    }

    public String getCarLenght() {
        return carLenght;
    }

    public void setCarLenght(String carLenght) {
        this.carLenght = carLenght;
    }

    public String getCarCube() {
        return carCube;
    }

    public void setCarCube(String carCube) {
        this.carCube = carCube;
    }

    public String getCarWeight() {
        return carWeight;
    }

    public void setCarWeight(String carWeight) {
        this.carWeight = carWeight;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(this.id);
        dest.writeString(this.status);
        dest.writeString(this.gmtCreate);
        dest.writeString(this.gmtModified);
        dest.writeString(this.accountId);
        dest.writeString(this.carFirstLetter);
        dest.writeString(this.cardNumber);
        dest.writeString(this.driverName);
        dest.writeString(this.driverTel);
        dest.writeString(this.driverLicense);
        dest.writeString(this.driverLicensePath);
        dest.writeString(this.engineNum);
        dest.writeString(this.carDicId);
        dest.writeString(this.driveLicense);
        dest.writeString(this.driveLicensePath);
        dest.writeString(this.driveLicensePath2);
        dest.writeString(this.driveLicensePath3);
        dest.writeString(this.zoneId);
        dest.writeString(this.zoneStreet);
        dest.writeInt(this.auditStatus);
        dest.writeString(this.auditReason);
        dest.writeString(this.postTimes);
        dest.writeString(this.isDel);
        dest.writeString(this.isOnline);
        dest.writeString(this.recordSource);
        dest.writeString(this.carLenght);
        dest.writeString(this.carCube);
        dest.writeString(this.carWeight);
    }

    @Override
    public String toString() {
        return "Vehicle{" +
                "id=" + id +
                ", status='" + status + '\'' +
                ", gmtCreate='" + gmtCreate + '\'' +
                ", gmtModified='" + gmtModified + '\'' +
                ", accountId='" + accountId + '\'' +
                ", carFirstLetter='" + carFirstLetter + '\'' +
                ", cardNumber='" + cardNumber + '\'' +
                ", driverName='" + driverName + '\'' +
                ", driverTel='" + driverTel + '\'' +
                ", driverLicense='" + driverLicense + '\'' +
                ", driverLicensePath='" + driverLicensePath + '\'' +
                ", engineNum='" + engineNum + '\'' +
                ", carDicId='" + carDicId + '\'' +
                ", driveLicense='" + driveLicense + '\'' +
                ", driveLicensePath='" + driveLicensePath + '\'' +
                ", driveLicensePath2='" + driveLicensePath2 + '\'' +
                ", driveLicensePath3='" + driveLicensePath3 + '\'' +
                ", zoneId='" + zoneId + '\'' +
                ", zoneStreet='" + zoneStreet + '\'' +
                ", auditStatus=" + auditStatus +
                ", auditReason='" + auditReason + '\'' +
                ", postTimes='" + postTimes + '\'' +
                ", isDel='" + isDel + '\'' +
                ", isOnline='" + isOnline + '\'' +
                ", recordSource='" + recordSource + '\'' +
                ", carLenght='" + carLenght + '\'' +
                ", carCube='" + carCube + '\'' +
                ", carWeight='" + carWeight + '\'' +
                '}';
    }

    protected Vehicle(Parcel in) {
        this.id = in.readInt();
        this.status = in.readString();
        this.gmtCreate = in.readString();
        this.gmtModified = in.readString();
        this.accountId = in.readString();
        this.carFirstLetter = in.readString();
        this.cardNumber = in.readString();
        this.driverName = in.readString();
        this.driverTel = in.readString();
        this.driverLicense = in.readString();
        this.driverLicensePath = in.readString();
        this.engineNum = in.readString();
        this.carDicId = in.readString();
        this.driveLicense = in.readString();
        this.driveLicensePath = in.readString();
        this.driveLicensePath2 = in.readString();
        this.driveLicensePath3 = in.readString();
        this.zoneId = in.readString();
        this.zoneStreet = in.readString();
        this.auditStatus = in.readInt();
        this.auditReason = in.readString();
        this.postTimes = in.readString();
        this.isDel = in.readString();
        this.isOnline = in.readString();
        this.recordSource = in.readString();
        this.carLenght = in.readString();
        this.carCube = in.readString();
        this.carWeight = in.readString();
    }

    public static final Parcelable.Creator<Vehicle> CREATOR = new Parcelable.Creator<Vehicle>() {
        @Override
        public Vehicle createFromParcel(Parcel source) {
            return new Vehicle(source);
        }

        @Override
        public Vehicle[] newArray(int size) {
            return new Vehicle[size];
        }
    };
}
